package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Teacher;

import java.util.Scanner;

public class TeacherController extends BaseTeacherController{
    private Scanner sc = new Scanner(System.in);

    //将学生对象进行封装
    @Override
    public Teacher inputTeacherInfo(String id){
        System.out.println("请输入老师姓名：");
        String name = sc.next();
        System.out.println("请输入老师年龄：");
        String age = sc.next();
        System.out.println("请输入老师生日：");
        String birthday = sc.next();
        Teacher teacher = new Teacher();
        teacher.setId(id);
        teacher.setName(name);
        teacher.setAge(age);
        teacher.setBirthday(birthday);
        return teacher;
    }
}
